<?php

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Services\UserService;
use App\Services\PetService;

class PetController extends Controller
{
    private $petService;

    public function __construct(Request $request, PetService $petService)
    {
        parent::__construct($request);
        $this->petService = $petService;
    }

    /**提交图生图
     * @return void
     */
    public function drawImg()
    {
        $this->petService->drawImg($this->requestData->all());
   }

    /**图片列表
     * @return void
     */
    public function drawImgList()
    {
        $this->petService->drawImgList($this->requestData->all());
    }
}
